#!/usr/bin/env python

from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.file_util import copy_file
import sys

class post_install(install_data):
   def run(self):
      #install_data.run(self);
      # Install the executable
      copy_file('boola.py',sys.exec_prefix + '/bin/boola',verbose=1);
      copy_file('boola.1.gz',sys.prefix + '/share/man/man1/boola.1.gz',verbose=1);

setup(name='boola',
      version="1.0.0",
      author="Chris Stranex",
      author_email="chris@stranex.com",
      url="http://code.google.com/p/boola/",
      description="Boola provides a simple control interface for Banshee via DMX.",
      license="GNU General Public Licence 2",
      py_modules=['boola.boola'],
      requires=['ola','dbus','argparse','array'],
      cmdclass={'install_data': post_install},
      data_files=[('boola','bin')],
);
